package com.caxxb.entity;



import java.sql.Date;
import java.time.LocalDate;

public class Game {

 /*   game_id
            game_name
    price
            game_developer
    release_time
            game_img
    typeid
            status*/
    private int game_id;
   private String game_name;
   private Double price;
   private String game_developer;
   private String release_time;
   private String game_img;
   private int typeid;
   private int status;
   private int sales;
   private GameType gameType=new GameType();

    public Game() {
    }

    public Game(int game_id, String game_name, Double price, String game_developer, String release_time, String game_img, int typeid, int status, int sales, GameType gameType) {
        this.game_id = game_id;
        this.game_name = game_name;
        this.price = price;
        this.game_developer = game_developer;
        this.release_time = release_time;
        this.game_img = game_img;
        this.typeid = typeid;
        this.status = status;
        this.sales = sales;
        this.gameType = gameType;
    }

    public Game(int game_id, String game_name, Double price, String game_developer, String release_time, String game_img, int typeid, int status, int sales) {
        this.game_id = game_id;
        this.game_name = game_name;
        this.price = price;
        this.game_developer = game_developer;
        this.release_time = release_time;
        this.game_img = game_img;
        this.typeid = typeid;
        this.status = status;
        this.sales = sales;
    }

    public Game(int game_id, String game_name, Double price, String game_developer, String release_time, String game_img, int typeid, int status) {
        this.game_id = game_id;
        this.game_name = game_name;
        this.price = price;
        this.game_developer = game_developer;
        this.release_time = release_time;
        this.game_img = game_img;
        this.typeid = typeid;
        this.status = status;
    }
    public String getTypename() {
        return gameType.getTypename();
    }

    public void setTypename(String typename) {
        gameType.setTypename(typename);
    }

    public int getGame_id() {
        return game_id;
    }

    public void setGame_id(int game_id) {
        this.game_id = game_id;
    }

    public String getGame_name() {
        return game_name;
    }

    public void setGame_name(String game_name) {
        this.game_name = game_name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getGame_developer() {
        return game_developer;
    }

    public void setGame_developer(String game_developer) {
        this.game_developer = game_developer;
    }

    public String getRelease_time() {
        return release_time;
    }

    public void setRelease_time(String release_time) {
        this.release_time = release_time;
    }

    public String getGame_img() {
        return game_img;
    }

    public void setGame_img(String game_img) {
        this.game_img = game_img;
    }

    public int getTypeid() {
        return typeid;
    }

    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    @Override
    public String toString() {
        return "Game{" +
                "game_id=" + game_id +
                ", game_name='" + game_name + '\'' +
                ", price=" + price +
                ", game_developer='" + game_developer + '\'' +
                ", release_time=" + release_time +
                ", game_img='" + game_img + '\'' +
                ", typeid=" + typeid +
                ", status=" + status +
                ", sales=" + sales +
                ", gameType=" + gameType +
                '}';
    }
}
